class CreatePilots < ActiveRecord::Migration
  def self.up
    create_table :pilots do |t|
      t.string :name, :country
      t.integer :victories, :podiums, :finish_in_points, :runs, :poles, :fastest_laps, :points, :victory_and_poles, :victory_and_pole_and_fastest_laps, :champs
      t.timestamps
    end
  end

  def self.down
    drop_table :pilots
  end
end
